package com.tencreat.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.core.enums.ImSessionType;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("`im_session`")
public class ImSession {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long lastMsg;
    private ImSessionType type;
    private Long userId;
    private Long groupId;
    private Long createUser;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}